package com.sc.nft.admin.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.admin.request.IdRequest;
import com.sc.nft.annotation.SysMemberLogin;
import com.sc.nft.entity.SysMember;
import com.sc.nft.entity.dto.AdminUserCreatorPhoneRecordDTO;
import com.sc.nft.entity.vo.AdminUserCreatorPhoneRecordVO;
import com.sc.nft.pool.SysMemberPool;
import com.sc.nft.service.UserCreatorPhoneRecordService;
import com.sc.nft.sup.PageResult;
import com.sc.nft.sup.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.List;

/**
 * @author 朱梦晨
 * @Description:
 * @date 2024-07-19
 */
@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping("/admin/dao/record")
@Api(tags = "品牌手机号修改记录")
public class AdminUserCreatorPhoneRecordController {


    private final UserCreatorPhoneRecordService userCreatorPhoneRecordService;


    /**
     * 品牌手机号修改记录
     * @param adminUserCreatorPhoneRecordDTO
     * @return
     */
    @PostMapping(value = "/getAdminDaoPhonePage", produces = MediaType.APPLICATION_JSON_VALUE)
    @ApiOperation(value = "品牌手机号修改记录", notes = "品牌手机号修改记录", httpMethod = "POST", produces = MediaType.APPLICATION_JSON_VALUE)
    @SysMemberLogin
    public PageResult<AdminUserCreatorPhoneRecordVO> getAdminDaoPhonePage(@Valid @RequestBody AdminUserCreatorPhoneRecordDTO adminUserCreatorPhoneRecordDTO) {
        Page<AdminUserCreatorPhoneRecordVO> userCreatorPhoneRecordById = userCreatorPhoneRecordService.getUserCreatorPhoneRecordById(adminUserCreatorPhoneRecordDTO);
        return PageResult.success(userCreatorPhoneRecordById);
    }



}
